/* jshint esversion:6 */
import React, {
  Component,
  PropTypes
} from 'react';

import './Form.scss';




/**
 * @class Form.Item
 */
class FormItem extends Component {
  static CLASS = {
    DEFAULT: 'form-item'
  };
  constructor(props) {
    super(props);
  }
  render() {
    const { children } = this.props;
    return (
      <div className={ Form.Item.CLASS.DEFAULT }>
        { children }
      </div>
    );
  }
}
FormItem.PropTypes = {
  children: PropTypes.node
};



export default class Form extends Component {
  static CLASS = {
    DEFAULT: 'form-wrap'
  };
  static Item = FormItem;
  constructor(props) {
    super(props);
  }
  render() {
    const { children } = this.props;
    return (
      <div className={ Form.CLASS.DEFAULT }>
        {children}
      </div>
    );
  }
}

Form.PropTypes = {
  children: PropTypes.node
};
